using System;
using System.Data;

namespace FreeFlow.Administration
{
	/// <summary>
	/// A note on a folder.
	/// </summary>
	public class FolderNote
	{
		internal FolderNote(IDataReader reader)
		{
      note = reader["eNotes"].ToString();
      action = reader["eActionName"].ToString();
      user = reader["eUserName"].ToString();
      time = (DateTime)reader["eEventTime"];
		}

    private string note;
    /// <summary>
    /// Gets the note.
    /// </summary>
    public string Note
    {
      get
      {
        return note;
      }
    }

    private string action;
    /// <summary>
    /// Gets the name of the action where the note was added.
    /// </summary>
    public string Action
    {
      get
      {
        return action;
      }
    }

    private string user;
    /// <summary>
    /// Gets the name of the user who added the note.
    /// </summary>
    public string User
    {
      get
      {
        return user;
      }
    }

    private DateTime time;
    /// <summary>
    /// Gets the time that the note was added.
    /// </summary>
    public DateTime Time
    {
      get
      {
        return time;
      }
    }
	}
}
